package cn.edu.ujn.liuklab3.dao;

import cn.edu.ujn.liuklab3.entity.Table;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;

public interface TableDao {
@Mapper
    Table queryById(Integer tableId);

    List<Table> queryAllByLimit(Table table, @Param("pageable") Pageable pageable);

    long count(Table table);

    int insert(Table table);

    int insertBatch(@Param("entities") List<Table> entities);

    int insertOrUpdateBatch(@Param("entities") List<Table> entities);

    int update(Table table);

    int deleteById(Integer tableId);

    List<Table> selectAll(Table table);

    Integer selectCount();
}

